﻿Public Class frmResetPassword
    Public Password As String = ""
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If txbNewPass.Text = txbNewPass2.Text Then
            Password = txbNewPass.Text
            Me.DialogResult = Windows.Forms.DialogResult.OK
        Else
            MsgBox("Passwords do not match.", MsgBoxStyle.Information, "Password error")
        End If
    End Sub
End Class